package string_operation

import "strings"

func RemoveSuffixPart(value string, sep string) (result string) {
	if sep == "" {
		sep = "-"
	}
	index := strings.Index(value, "-")
	if index >= 0 {
		result = value[:strings.Index(value, "-")]
	} else {
		result = value
	}
	return
}
